from django.urls import path
from . import views

app_name = 'mobile_app'

urlpatterns = [
    # 首页和认证
    path('', views.home, name='home'),
    path('login/', views.login_view, name='login'),
    path('register/', views.register_view, name='register'),
    path('logout/', views.logout_view, name='logout'),
    
    # 主要功能
    path('dashboard/', views.dashboard, name='dashboard'),
    path('phone-management/', views.phone_management, name='phone_management'),
    path('plan-management/<int:phone_id>/', views.plan_management, name='plan_management'),
    path('balance-query/<int:phone_id>/', views.balance_query, name='balance_query'),
    path('payment/<int:phone_id>/', views.payment, name='payment'),
    path('profile/', views.profile, name='profile'),
    path('switch-phone/', views.switch_phone, name='switch_phone'),
    
    # API接口
    path('api/simulate-usage/', views.simulate_usage, name='simulate_usage'),
]
